from flask_script import Manager
from app import create_app
import logging
app = create_app()
manager = Manager(app)


if __name__ != '__main__':
    gunicorn_logger = logging.getLogger('gunicorn.error')
    app.logger.handlers = gunicorn_logger.handlers
    app.logger.setLevel(gunicorn_logger.level)

if __name__ == '__main__':
    manager.run()


# if __name__ == '__main__':
#     app.run(debug=True)

